package com.jd.charactercalculator.facade.impl;

import java.util.List;

import com.jd.charactercalculator.biz.UserBiz;
import com.jd.charactercalculator.dto.param.UserParamDto;
import com.jd.charactercalculator.dto.result.PagingResultDto;
import com.jd.charactercalculator.dto.result.UserResultDto;
import com.jd.charactercalculator.facade.UserFacade;

public class UserFacadeImpl implements UserFacade {

	private UserBiz userBiz;
	
	@Override
	public PagingResultDto getUsers(UserParamDto userParamDto) {
		return userBiz.getUsers(userParamDto);
	}

	public UserBiz getUserBiz() {
		return userBiz;
	}

	public void setUserBiz(UserBiz userBiz) {
		this.userBiz = userBiz;
	}

	@Override
	public boolean addUsers(List<UserParamDto> userParamDtoList) {
		return userBiz.addUsers(userParamDtoList);
	}
	
	@Override
	public boolean updateUsers(List<UserParamDto> userParamDtoList) {
		return userBiz.updateUsers(userParamDtoList);
	}
	
}
